<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>
	[#include "/admin/include/admin_static.htm"]
	[#import "/admin/include/admin_pagination.ftl" as p/]
    <script type="text/javascript">
	$(function() {
		$("#query").click( function() {
			$("#searchForm").attr("action", "${path}/admin/account/list.aspx").submit();
		});

		$("#export").click(  function() {
			$("#searchForm").attr("action","${path}/admin/account/exportList.aspx").submit();
		});
	});

	</script>
</head>
<body>
	<div class="main_admin_content">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>账户信息</legend>
        </fieldset>
		<form id="searchForm" method="post"
			action="${path}/admin/account/list.aspx">
			<table class="search_table_div">
				<tr>
					<td class="column">用户ID：</td>
					<td><input type="text"
						onkeyup="value=value.replace(/[^\d]/g,'')" name="userId"
						value="${userId }" /></td>
					<td class="column">用户名：</td>
					<td><input type="text" name="userName" value="${userName }" /></td>
					<td class="column">注册时间：</td>
					<td><input type="text" onclick="WdatePicker();"
						value="${begin_date }" name="begin_date" class="short"
						readonly="readonly" /> <i>至</i> <input type="text"
						onclick="WdatePicker();" value="${end_date }" name="end_date"
						class="short" readonly="readonly" /></td>
				</tr>
				<tr>
					<th colspan="100" class="btn_td">
                        <input id="export" type="button"  class="layui-btn" style="float:left;width: 100px; heigth: 30px; line-height: 30px" value="导出">
						<input id="query"
						type="button" class="layui-btn" value="查询" /> <input
						onclick="resent();" type="button"  class="layui-btn"
						value="清空" /></th>
				</tr>
			</table>
		</form>
        <table class="layui-table">
            <colgroup>
                <col width="50">
                <col width="80">
                <col width="80">
                <col width="80">
                <col width="80">
                <col width="80">
                <col width="80">
                <col width="80">


            </colgroup>

            <thead>
			<tr>

				<th>用户ID</th>
				<th>用户名称</th>
				<th>账户总额</th>
				<th>可用余额</th>
				<th>冻结金额</th>
				<th>活期宝总额</th>
				<th>待收金额</th>
				<th>注册时间</th>
			</tr>
            </thead>
			[#list 	 accounts as account]

				<tr>
					<td>${account.user_id}</td>
					<td>${account.u_userName }</td>
					<td>￥${(account.total+account.collection)!0 }</td>
					<td>￥${account.balance }</td>
					<td>￥${account.freezing_amont }</td>
					<td>￥${account.yuebao_total!"0"}</td>
					<td>￥${account.collection }</td>
					<td>${p2p_date_format(account.u_addtime,"yyyy-MM-dd HH:mm:ss")}</td>
				</tr>
			[/#list]

		</table>
	[@p.pager pager = page parameterMap={"userName":"${userName}","userId":"${userId }","begin_date":"${begin_date }","end_date":"${end_date }"}   url = "${path}/admin/account/list.aspx"/]
	</div>
</body>
</html>